package com.yckj.domain;

import com.yckj.dao.Lawyer;

import java.util.List;

/**
 * 对律师档案表进行操作：创建律师、修改律师、查询律师
 * @author liruiqi
 */
public class LawyerDao {
    /**
     * 新建律师
     * @param lawyer 律师对象
     * @return 如果返回1，表示条件成功；返回0，表示添加失败
     */

    public int creatLawyer (Lawyer lawyer)
    {
        System.out.println("创建律师");
        return 1;

    }

    /**
     * 修改律师
     * @param lawyer 律师对象，包含有律师的详细信息
     * @return 如修改成功，返回1；失败，返回0
     */

    public int modifyLawyer (Lawyer lawyer)
    {
        System.out.println("修改律师...");
        return 1;

    }

    /**
     * 查询所有律师
     * @return 包含所有律师集合list
     */
    public List<Lawyer> findAllLawyer ()
    {
        System.out.println("查询所有律师");
        return null;

    }
}
